// components/prize.js
const setting = require("../../http/env");

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    prizeList: {
      type: Array,
      value: [],
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    //默认域名
    baseUrl: setting.baseUrl,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    closePrize() {
      this.triggerEvent("closePrize", true);
    },
    viewPrize() {
      wx.navigateTo({
        url: "/pages/prize-list/prize-list",
      });
      this.closePrize();
    },
  },
});
